package com.five.wisdomClass.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("admin")
@AllArgsConstructor
@NoArgsConstructor
public class Admin implements Serializable {

    // id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 邮箱
    @TableField("admin_email")
    private String adminEmail;

    // 姓名
    @TableField("name")
    private String name;

    // 性别
    @TableField("gender")
    private String gender;

    // 手机号
    @TableField("phone")
    private String phone;

    // 地址
    @TableField("address")
    private String address;

    // 头像地址
    @TableField("photourl")
    private String photoUrl;

    // 删除
    @TableField("del")
    private Integer del;

    // 锁定
    @TableField("lock")
    private Integer lock;
}

